/*
 * hal_tim.h
 *
 *  Created on: Feb 8, 2025
 *      Author: hongwei_zhu
 */

#ifndef HAL_HAL_TIM_H_
#define HAL_HAL_TIM_H_

#include "CH58x_common.h"
#include "CH58x_timer.h"

struct gtim_type{
    void (*init)(uint16_t);
    void (*start)(void);
    void (*pause)(void);
    void (*callback)(void);
};
extern struct gtim_type timer0;
extern struct gtim_type timer1;
extern struct gtim_type timer2;
extern struct gtim_type timer3;

#endif /* HAL_HAL_TIM_H_ */
